﻿using System;
using System.Runtime.Serialization;

namespace FileManager_Server.ServiceModel.Client_Update_Model.Client_Update_DataTransfer_Model
{
    [DataContract]
    public class UpdateFileInfo
    {
        [DataMember]
        public string FileName { get; set; }
        [DataMember]
        public string ApplicationVersion { get; set; }
        [DataMember]
        public long FileLength { get; set; }
        [DataMember]
        public UpdateError UpdateError { get; set; }
        [DataMember]
        public byte[] UpdateInfomation { get; set; }
    }
    [DataContract]
    public enum UpdateError
    {
        [EnumMember]
        NotFindFile,
        [EnumMember]
        ServerHasProblem
    }
}